-- GENERATED SPELL FOR [Roanauk Icemist] --


function spell0_26654(pUnit, Event) --@Glory of the Ancestors,Self--
pUnit:FullCastSpellOnTarget(47378,pUnit)
pUnit:RegisterEvent('Sorts_26654', 5000, 1)
end

function spell1_26654(pUnit, Event) --@Icemist\'s Blessing,Self--
pUnit:FullCastSpellOnTarget(47379,pUnit)
pUnit:RegisterEvent('Sorts_26654', 30345, 1)
end

function Sorts_26654(pUnit, Event)
local choix_sorts_26654 = math.random(0, 1)
if choix_sorts_26654 == 0 then
pUnit:RegisterEvent('spell0_26654', 1, 1)
end
if choix_sorts_26654 == 1 then
pUnit:RegisterEvent('spell1_26654', 1, 1)
end
end

function mob26654_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26654', math.random(1500, 3000), 1)
end

function mob26654_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26654_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26654_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26654, 1, 'mob26654_Action')
RegisterUnitEvent(26654, 2, 'mob26654_Leave')
RegisterUnitEvent(26654, 3, 'mob26654_Kill')
RegisterUnitEvent(26654, 4, 'mob26654_Die')
